﻿using UnityEngine;
using System.Collections;

namespace UI
{
    public class TalentDetailItem : MonoBehaviour
    {
        public UILabel labName;
        public UILabel labLeftValue;
        public UILabel labRightValue;
        public GameObject pointer;
        public GameObject lineUp;

        public void SetValues(string name, string value1, string value2)
        {
            labName.text = name;
            labLeftValue.text = value1;

            if(labRightValue != null)
            {
                labRightValue.text = value2;
                if (value2 == "")
                    pointer.SetActive(false);
                else
                    pointer.SetActive(true);
            }
        }
    }
}
